x=eval(input("请输入税前收入x的值"))
a=x-5000
if a<0:
  A=0
elif a<1500:
  A=a*0.03
elif a<4500:
  A=1500*0.03+(a-1500)*0.1
elif a<9000:
  A=1500*0.03+3000*0.1+(a-4500)*0.2
elif a<35000:
  A=1500*0.03+3000*0.1+4500*0.2+(a-9000)*0.25
elif a<55000:
  A=1500*0.03+3000*0.1+4500*0.2+26000*0.25+(a-35000)*0.3
elif a<80000:
  A=1500*0.03+3000*0.1+4500*0.2+26000*0.25+20000*0.3+(a-55000)*0.35
else:
  A=1500*0.03+3000*0.1+4500*0.2+2600080.25+20000*0.3+25000*0.35+(a-80000)*0.45
print("本月应缴税{}元".format(A))